package com.example.sms;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.UUID;

@RestController
public class SmsController {

    @Resource
    private SmsService smsService;

    @RequestMapping(value = "sendSms")
    public String sendSms(){
        String uuid = "sms: " + UUID.randomUUID().toString();
        smsService.send(uuid);
        return uuid;
    }
}
